package com.youxin.cpcenter.service;

import java.util.List;

import javax.servlet.http.HttpServletResponse;

import com.youxin.busfoundation.bean.ResponseObject;
import com.youxin.busfoundation.bean.ent.RequestSwitchBean;
import com.youxin.busfoundation.bean.ent.ResponseAccountBean;
import com.youxin.busfoundation.bean.login.RequestLoginBean;
import com.youxin.busfoundation.bean.login.RequestRefreshToken;

/**
 * 登录服务
 * @author yingde.cao
 *
 */
public interface LoginService {
	/**
	 * 登录
	 * @param bean
	 * @return String token
	 */
	ResponseObject login(RequestLoginBean bean,HttpServletResponse httpServletResponse);
	/**
	 * 刷新token
	 * @param bean
	 * @return String 新的token
	 */
	ResponseObject refreshToken(RequestRefreshToken bean,HttpServletResponse httpServletResponse);
	
	ResponseObject requestLoginVerifyCode(com.youxin.busfoundation.bean.login.RequestLoginVerifyCode bean) throws Exception;
	
	public ResponseObject logout(RequestRefreshToken bean);
	public ResponseObject switchAccount(RequestSwitchBean bean);
	public List<ResponseAccountBean> listAccount();
	public ResponseObject loginfo();
}
